// miniprogram/pages/setting/setting.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    settingSwitch:false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  //设置切换
  settingSwitch:function(){
    this.setData({
      settingSwitch: !this.data.settingSwitch
    })
  },

  submit1:function(e){
    console.log(e)
  }
})